package com.itheima.mapper.user;

import com.itheima.domain.Role;
import com.itheima.domain.UserInfo;

import java.util.List;

public interface UserMapper {
    List<UserInfo> list();

    void save(UserInfo user);

    Boolean deleteByIds(String[] ids);

    UserInfo findById(String id);

    List<UserInfo> findByName(String id);

    void changeStatusById(UserInfo user);

    UserInfo findRoleById(String id);

    List<String> findPerById(String id);

    List<UserInfo> findAllRole();

    void changeRoleById(String id,String uid);
}
